package com.senthink.gl.business.fault;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 验收工单Request对象
 *
 * @author zooqi@senthink.com
 * @date 2018/03/30
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class AcceptOrderRequest {

    /**
     * 工单数据库ID
     */
    @NotNull
    private Long id;

    /**
     * 验收结果
     * <p>
     * 1: 验收通过
     * 2: 验收不通过
     * </p>
     */
    @Min(1)
    @Max(2)
    @NotNull
    private Integer type;

    /**
     * 验收说明
     */
    @Size(max = 32)
    @NotNull
    private String remarks;
}
